package com.taorenqi.data.converter;


import java.io.IOException;

import okhttp3.ResponseBody;
import retrofit2.Converter;

/**
 * Created by eric on 2017/9/21.
 */

public abstract class BaseResponseConverter<T> implements Converter<ResponseBody,T> {

    @Override
    public T convert(ResponseBody value) throws IOException {
//        String response = Jiemi.decodeData(value.string());
        return parserJson(value.string());
    }

    public abstract T parserJson(String json);
}